package com.autonavi.yunda.yunji.core.vo;

import com.autonavi.yunda.yunji.core.enums.FunctionStatus;
import com.autonavi.yunda.yunji.core.enums.FunctionType;
import lombok.Data;

import java.sql.Timestamp;

import static com.autonavi.yunda.yunji.core.config.EngineConstant.FUNCTION_VERSION_SEPARATOR;

/**
 * @author cizhong.wcs
 * @date 2023/8/31 14:32
 */
@Data
public class EngineFunctionConfigVO {
    private Long id;
    private String name;
    private String params;
    private String description;
    private FunctionType type;
    private FunctionStatus status;
    private String version;
    private String functionScript;
    private Timestamp updateTime;

    public String getFunctionKey() {
        return this.name + FUNCTION_VERSION_SEPARATOR + this.version;
    }
}
